package io;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class IODemo11 {
    public static void main(String[] args) {
        //Write写操作(一般写入字符串)
        try(Writer writer=new FileWriter(("./test.txt"),true)) {
            String s="你好";
            writer.write(s);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } ;

    }
}
